/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package batailledesardennes;

import batailledesardennes.game.GameEnv;
import batailledesardennes.game.state.TestState;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

/**
 *
 * @author charly
 */
public class BatailleDesArdennes extends StateBasedGame {
   public BatailleDesArdennes() {
      super("Bataille des Ardennes");
   }

   @Override
   public void initStatesList(GameContainer container) throws SlickException {
      GameEnv env = new GameEnv();
      TestState state = new TestState(env);
      addState(state);
   }

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
      try {
         AppGameContainer container = new AppGameContainer(new BatailleDesArdennes());
         container.setDisplayMode(800, 600, false);
//         container.setTargetFrameRate(50);
         container.start();
      } catch (SlickException e) {
         e.printStackTrace();
      }
   }
}
